﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectInf.aspx.cs" Inherits="SchoolCardSystem.SelectInf" %>
<%@ Import namespace="System.Data" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="stylesheet" href="css/SelectInf.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="head">
        <div class="head-title">
            <asp:Label ID="Label1" runat="server" Text="查询记录"></asp:Label>
        </div>
    </div>
    <div class="body">
        <asp:Button CssClass="input" ID="selectBtn" runat="server" Text="查询充值" OnClick="selectBtn_Click" />
        <asp:Button CssClass="input" ID="removeBtn" runat="server" Text="查询消费" OnClick="removeBtn_Click" />
        <asp:Repeater ID="repeat" runat="server">
            <HeaderTemplate>
            <table border="1" class="repeat-tb">
                <tr>
                    <%if (select == 2)
                        { %>
                            <th>消费金额</th>
                            <th>消费记录</th>               
                        <% } %>
                        <%if (select == 1)
                        { %>
                            <th>充值金额</th>
                            <th>充值记录</th>               
                        <% } %>  
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <%if (select == 2)
                        { %>
                        <td><%#((DataRowView)Container.DataItem)["cardOutPrice"]%></td>
                        <td><%#((DataRowView)Container.DataItem)["cardOutTime"]%></td>               
                        <% } %>
                    <%if (select == 1)
                        { %>
                        <td><%#((DataRowView)Container.DataItem)["cardInPrice"]%></td>
                        <td><%#((DataRowView)Container.DataItem)["cardInTime"]%></td>               
                        <% } %>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
            </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>